import React, { useContext } from 'react';
import MyContext from './MyContext';
const ChildrenView = () => {
  const context = useContext(MyContext);
  const { state, dispatch } = context;

  return (
    <div>
      <h1>childrendView:</h1>
      <h3>count: {state.count}</h3>
    </div>
  );
}

export default ChildrenView;
